//#include<iostream>
//using namespace std;
//
//
//template <typename T>
//void Swap(T&a,T&b)
//{
//	T c = a;
//	a = b;
//	b = c;
//}
//int main()
//{
//	int a = 1;
//	int b = 2;
//	Swap(a, b);
//	
//	
//
//	system("pause");
//	return 0;
//}
//
//
//
////template<typename T>
////void Swap(T& left, T& right)
////{
////	T temp = left;
////	left = right;
////	right = temp;
////}
////
////int main()
////{
////	int a = 0, b = 1;
////	Swap(a, b);
////
////	double c = 1.1, d = 2.2;
////	Swap(c, d);
////
////	int* p1 = &a, * p2 = &b;
////	Swap(p1, p2);
////
////	swap(p1, p2);
////	//...
////
////	return 0;
////}